#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

long long countVowels(char* word);

int main()
{
	return 0;
}

char vowel[] = "aeiou";
long long countVowels(char* word)
{
	int length = strlen(word);
	long long res = 0;
	char ch;
	for (int idx = 0; (ch = word[idx]); idx++) {
		for (int i = 0; i < 5; i++)
			if (ch == vowel[i]) {
				res += (long long)(idx + 1) * (length - idx);
				break;
			}
	}

	return res;
}
